﻿<%@ Page Title="Add Staff" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddStaff.aspx.cs" Inherits="RedemptoristRetreatCenter.AddStaff" %>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %></h1>
    </hgroup>
    
    <p class="validation-summary-errors">
        <asp:Literal runat="server" ID="ErrorMessage" />
    </p>
    <table style="width: 100%;">
        <tr>
            <td><asp:Label ID="Label1" runat="server" AssociatedControlID="staffUserName">User name</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffUserName" OnTextChanged=Username_Change/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="staffUserName"
                    CssClass="field-validation-error" ErrorMessage="The username field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label15" runat="server" AssociatedControlID="IsAdmin">Is Administrator </asp:Label></td>
            <td><asp:CheckBox runat="server" ID="IsAdmin"/></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label2" runat="server" AssociatedControlID="staffEmail">Email address</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffEmail" TextMode="Email" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="staffEmail"
                    CssClass="field-validation-error" ErrorMessage="The email address field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label3" runat="server" AssociatedControlID="staffPassword">Password</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffPassword" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="staffPassword"
                    CssClass="field-validation-error" ErrorMessage="The password field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label4" runat="server" AssociatedControlID="staffConfirmPassword">Confirm password</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffConfirmPassword" TextMode="Password" OnTextChanged="Password_ValidateMatch"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="staffConfirmPassword"
                    CssClass="field-validation-error" Display="Dynamic" ErrorMessage="The confirm password field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label5" runat="server" AssociatedControlID="staffFirstName">First Name</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffFirstName"/>    
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="staffFirstName"
                    CssClass="field-validation-error" ErrorMessage="The first name field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label6" runat="server" AssociatedControlID="staffLastName">Last Name</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffLastName"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="staffLastName"
                    CssClass="field-validation-error" ErrorMessage="The last name field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label7" runat="server" AssociatedControlID="staffAddressLineOne">Address</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffAddressLineOne"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="staffAddressLineOne"
                    CssClass="field-validation-error" ErrorMessage="The address field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label8" runat="server" AssociatedControlID="staffAddressLineTwo">Address</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffAddressLineTwo"/></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label9" runat="server" AssociatedControlID="staffCity">City</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffCity"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="staffCity"
                    CssClass="field-validation-error" ErrorMessage="The city field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label10" runat="server" AssociatedControlID="staffState">State</asp:Label></td>
            <td><asp:DropDownList runat="server" ID="staffState"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="staffState"
                    CssClass="field-validation-error" ErrorMessage="The state field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label11" runat="server" AssociatedControlID="staffZipCode">Zip Code</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffZipCode"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="staffZipCode"
                    CssClass="field-validation-error" ErrorMessage="The zip code field is required." /></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label12" runat="server" AssociatedControlID="staffHomePhone">Home Phone</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffHomePhone"/></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label13" runat="server" AssociatedControlID="staffCellPhone">Cell Phone</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffCellPhone"/></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label14" runat="server" AssociatedControlID="staffBusinessPhone">Business Phone</asp:Label></td>
            <td><asp:TextBox runat="server" ID="staffBusinessPhone"/></td>
        </tr>
    </table>
    <asp:Button ID="StaffRegister" runat="server" CommandName="StaffRegister_Click" Text="Register Staff" OnClick="StaffRegister_Click" />
</asp:Content>
